Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Graphics /
Chapter 2 - Geometric Shapes / Geometric Shapes Reference
Functions


Getting and Setting Shape Geometries

The geometry property of geometric shapes contains the geometric points that define the shape. The geometries of polygon shapes and path shapes also contain some additional information, such as the number of separate contours, how many geometric points in each contour, and (for paths) which geometric points are on curve and which are off-curve control points.

For general information about each type of geometry, see "About Geometric Shapes" beginning on page 2-5. For specific definitions of each type of geometric structure, see the section "Data Types" beginning on page 2-104.

The GXSetShapeVector function allows you to change the geometry of any shape. With this function, you specify a shape and an array of values. The function replaces the geometry of the specified shape with the values in the array. This function works for other shape types as well as geometric shapes.

The GXGetPoint, GXGetLine, GXGetCurve, GXGetRectangle, GXGetPolygons, and GXGetPaths functions each return the geometry of a specific type of shape.

The GXSetPoint, GXSetLine, GXSetCurve, GXSetRectangle, GXSetPolygons, and GXSetPaths functions each replace the geometry of a specific type of shape.


Subtopics
GXSetShapeVector
GXGetPoint
GXSetPoint
GXGetLine
GXSetLine
GXGetCurve
GXSetCurve
GXGetRectangle
GXSetRectangle
GXGetPolygons
GXSetPolygons
GXGetPaths
GXSetPaths

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help